//
//  GitCmd.h
//  iLiteNote
//
//  Created by xiangism on 15/8/26.
//  Copyright (c) 2015年 LiteNice. All rights reserved.
//

#ifndef __iLiteNote__GitCmd__
#define __iLiteNote__GitCmd__

#include <stdio.h>
#import <Foundation/Foundation.h>

@class GitInfo;

@interface GitControl : NSObject

- (id)initWithInfo:(GitInfo*)path;

- (int)gitClone;

- (int)gitPull;

- (int)gitPush;

- (int)gitInit; //dep

@end // GitControl


//void cmdSetPath();
//void cmdInit();
//int cmdClone();
//int cmdPull();
//int cmdPush();

//extern NSString *gitLastMessage;

/*
 
 Error code:
 * -1 未知错误
 * 1 网络错误
 * 2 pull时文件冲突，得手动解决
 * 3 打开本地.git失败
 */

#endif /* defined(__iLiteNote__GitCmd__) */
